# 带着二哈去旅行丶:ZZQ
# 生成时间：2021/12/11 下午7:44

import json
filename = 'eq_data/eq_data_30_day_m1.json'
with open(filename) as f:
    all_eq_data = json.load(f)

mags, titles, lons, lats = [], [], [], []
for eq_dict in all_eq_data['features']:
    mags.append(eq_dict['properties']['mag'])       # 字典形式
    titles.append(eq_dict['properties']['title'])
    lons.append(eq_dict['geometry']['coordinates'])
    lats.append(eq_dict['geometry']['coordinates'])

print(mags[:10])
print(titles[:2])
print(lons[:5])
print(lats[:5])

